package edu.yctc.delivery.entity;

import java.time.LocalDateTime;

/**
 * DeliveryDO实体类
 * 
 * @author 渠立庆
 */
public class DeliveryDO {

    /** 主键 */
    private long id;
    /** 车上的货物量 */
    private double volume;
    /** 配送点的Id */
    private long pointId;
    /** 货车的Id */
    private long truckId;
    /** 配送员的Id */
    private long userId;
    /** 到达配送点时间 */
    private LocalDateTime arriveTime;
    /** 创建时间 */
    private LocalDateTime createTime;
    /** 修改时间 */
    private LocalDateTime modifyTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public double getVolume() {
        return volume;
    }

    public void setVolume(double volume) {
        this.volume = volume;
    }

    public long getPointId() {
        return pointId;
    }

    public void setPointId(long pointId) {
        this.pointId = pointId;
    }

    public long getTruckId() {
        return truckId;
    }

    public void setTruckId(long truckId) {
        this.truckId = truckId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public LocalDateTime getArriveTime() {
        return arriveTime;
    }

    public void setArriveTime(LocalDateTime arriveTime) {
        this.arriveTime = arriveTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("DeliveryDO [id=");
        builder.append(id);
        builder.append(", volume=");
        builder.append(volume);
        builder.append(", pointId=");
        builder.append(pointId);
        builder.append(", truckId=");
        builder.append(truckId);
        builder.append(", userId=");
        builder.append(userId);
        builder.append(", arriveTime=");
        builder.append(arriveTime);
        builder.append(", createTime=");
        builder.append(createTime);
        builder.append(", modifyTime=");
        builder.append(modifyTime);
        builder.append("]");
        return builder.toString();
    }

}
